package com.macro.mall.service;

import com.macro.mall.model.CaseStyle;

import java.util.List;

public interface CaseStyleService {

    int deleteByPrimaryKey(Integer id);

    int insert(CaseStyle record);

    int insertSelective(CaseStyle record);

    CaseStyle selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CaseStyle record);

    int updateByPrimaryKey(CaseStyle record);

    int batchInsert(List<CaseStyle> list);

    List<CaseStyle> getCaseStyleList();

    /**
     * 查询风格个数
     * @return
     */
    int findCaseStyleNum();

    /**
     * 分页查询风格list
     * @param curPage
     * @return
     */
    List<CaseStyle> findCaseStyleList(Integer curPage, Integer pageSize);

    int findStyleNameNum(String name, Integer id);
}
